﻿<Window x:Class="Cyclops.MainApplication.View.Dialogs.InputDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Title" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        MinHeight="116" MaxHeight="400" Width="400" SizeToContent="Height" 
        WindowStartupLocation="CenterOwner" WindowStyle="ToolWindow" Loaded="Window_Loaded"  
TextOptions.TextFormattingMode="Display" TextOptions.TextRenderingMode="ClearType">
    <Grid >
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="44" />
        </Grid.RowDefinitions>
        
        <TextBox x:Name="textBox" Margin="10,10,10,0" Text="{Binding TextValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                 TextWrapping="Wrap" />
        
        <Button Grid.Row="1" IsDefault="True" Width="70" Height="24" Margin="0,0,10,0" 
                Content="{Binding Path=Common.Ok, Source={StaticResource ResourceWrapper}}" 
                HorizontalAlignment="Right" Command="{Binding Ok}" />
        
        <Button Grid.Row="1" IsCancel="True" Width="70" Height="24" Margin="0,0,88,0" 
                Content="{Binding Path=Common.Cancel, Source={StaticResource ResourceWrapper}}" 
                HorizontalAlignment="Right" Command="{Binding Cancel}"/>
    </Grid>
</Window>
